package cn.felord.security.autoconfigure.authentication.miniapp;

import org.springframework.security.core.userdetails.UserDetails;

/**
 * The interface Channel user details service.
 *
 * @author felord.cn
 * @since 1.0.8.RELEASE
 */
public interface MiniAppUserDetailsService {

    /**
     * 小程序在微信登录成功后发起后端注册登录的方法
     *
     * @param request the request
     * @return the user details
     */
    UserDetails loadByOpenId(MiniAppRequest request);
}
